package vis.core.common.valid;

import vis.core.common.valid.base.ValidBy;
import vis.core.common.valid.handler.MinHandler;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({METHOD, FIELD, PARAMETER})
@Retention(RUNTIME)
@Documented
@ValidBy(MinHandler.class)
public @interface Min {
    long value() default 0;

    String msg() default "";
}
